package com.wulian.gateway.feign;


import com.wulian.common.entity.CarSysUser;
import com.wulian.common.interceptor.FeignConfigInterceptor;
import com.wulian.common.vo.ResultMoudel;
import com.wulian.gateway.feign.impl.CarManagerServiceFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author caifulin
 * @version 1.0
 * @Description:()
 * @date 2020/7/15 15:47
 */
@FeignClient(value = "wulian-car-manager",fallback = CarManagerServiceFallbackImpl.class,configuration= FeignConfigInterceptor.class)
public interface CarManagerService {

    @PostMapping("/carManagerUserRest/car/login")
    ResultMoudel login(@RequestBody CarSysUser carSysUser,@RequestParam("userToken") String userToken);
}